#include<iostream>
using namespace std;
#include<cmath>

int main(){

	int a=-1,b=-1;
	while( a<0 ){
		cout<<" Please input a positive integer a= ";
		cin>>a;
	}
	while( b<0 ){
		cout<<" Please input a positive integer b= ";
		cin>>b;
	}
	cout<<" a%b = "<< a%b <<endl;
	return 0;
}
